﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="Individual.aspx.cs" Inherits="CheckLeave_Individual" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div align="left">
        <table  align="center" style="width: 511px; height: 154px">
            <tr>
                <td colspan="3">
                    <asp:Panel ID="Panel1" runat="server" Height="19px" Width="305px" Visible="False">
                        选择要查看的部门：<asp:DropDownList ID="cmbDeptList" runat="server" Width="147px" OnSelectedIndexChanged="cmbDeptList_SelectedIndexChanged" AutoPostBack="True">
                        </asp:DropDownList></asp:Panel>
                    <asp:Panel ID="Panel2" runat="server" Height="26px" Width="301px">
                        选择要查看的员工：<asp:DropDownList ID="cmbEmpList" runat="server" Width="149px" OnSelectedIndexChanged="cmbEmpList_SelectedIndexChanged">
                        </asp:DropDownList></asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="height: 26px">
                    开始时间：<asp:TextBox ID="txtStartTime" runat="server" Width="117px"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtStartTime"
                        ErrorMessage="开始时间不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px">
                    结束时间：<asp:TextBox ID="txtEndTime" runat="server" Width="119px"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEndTime" ErrorMessage="结束时间不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Button ID="BtnSearch" runat="server" Text="搜索" OnClick="BtnSearch_Click"/></td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Panel ID="Panel3" runat="server" Height="50px" Visible="False" Width="510px">
                        审批者：<asp:Label ID="lblApproverName" runat="server" Width="377px"></asp:Label><br />
                        请假理由：<asp:Label ID="lblReason" runat="server" Width="362px"></asp:Label><br />
                        否决理由：<asp:Label ID="lblDenyReason" runat="server" Width="359px"></asp:Label></asp:Panel>
                    <br />
                    <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False"
                        Width="582px" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowCommand="grdResult_RowCommand" OnSelectedIndexChanged="grdResult_SelectedIndexChanged">
                        <Columns>
                            <asp:BoundField HeaderText="开始时间" DataField="StartTime" />
                            <asp:BoundField HeaderText="结束时间" DataField="EndTime" />
                            <asp:BoundField HeaderText="提交时间" DataField="SubmitTime" />
                            <asp:BoundField HeaderText="状态" DataField="Status" />
                            <asp:BoundField HeaderText="小时数" DataField="Hours" />
                            <asp:ButtonField Text="详细情况" CommandName="Select" />
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#EFF3FB" />
                        <EditRowStyle BackColor="#2461BF" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    
    </div>
        <span lang="EN-US" style="font-size: 10pt; font-family: Arial; mso-fareast-font-family: 宋体;
            mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN;
            mso-bidi-language: HE"></span>
</asp:Content>